package gewu.suleju.config;

import gewu.suleju.rbm.RbmConst;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// 本类用来演示: 自动构建rbm-server相关信息
@Configuration
public class RbmConfig {
    @Bean
    public Queue simpleQueue() {
        return new Queue(RbmConst.SIMPLE_QUEUE);
    }

    @Bean
    public Queue simpleQueue01() {
        return new Queue(RbmConst.SIMPLE_QUEUE01);
    }
}
